package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")    //指定要调用哪个远程服务
public interface MemberFeignService {
    /**
     * 根据 id 查询收货地址信息
     */
    @RequestMapping("/member/memberreceiveaddress/info/{id}")    //指定要远程调用哪个服务方法
    R addrInfo(@PathVariable("id") Long id);
}
